﻿using System.Windows.Controls;
using Microsoft.Practices.Unity;

namespace WorldIndex.Modules.Countries.Views
{
    public partial class CountryListView : UserControl
    {
        public CountryListView(IUnityContainer container)
        {
            InitializeComponent();

            var vm = LayoutRoot.DataContext as CountryListViewModel;
            vm.CountryService = container.Resolve<ICountryService>();
        }
    }
}
